<template>
	<div>
		<h2>这个是 axios 的使用</h2>
	</div>
</template>

<script>
	export default {};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
	h1,
	h2 {
		font-weight: normal;
	}
</style>
<script>
	let _this;
	export default {
		data() {
			return {};
		},
		beforeCreate() {
			_this = this;
		},
		created() {},
		mounted() {
			_this.$nextTick(function() {
				_this.$axios.post('/api/platform/user/getUsessionId.m').then(
					resp => {
						if(resp.data.result) {
							console.log('axios请求是成功的');
						}
					},
					error => {
						console.log('axios请求是失败的');
					}
				);
			});
		},
		methods: {}
	}
</script>